const mongoose=require('mongoose');
mongoose.connect('mongodb+srv://891181869:wzh20030214@hospital.ngssrjv.mongodb.net/?retryWrites=true&w=majority&appName=Hospital')
.then(()=>{
    console.log("数据库连接成功");
})
.catch((err)=>{
    console.log("数据库连接失败");
})
module.exports = mongoose;
